package com.geoboard;

import android.content.Context;

/**
 * A container class for variables that will be shared globally.
 * @author Gordon Meyer 03/13
 */
public class Globals {
	public static final int MAX_CHAR_PER_MES = 140;
	public static final int CON_TIME_OUT = 25000;
	public static final int SOC_TIME_OUT = 25000;
	
	public static final String SERVER_ADD = "http://doghead.ca";
	public static final String SERVER_PORT = "9000";
	
	private static Context context = null;
	private static MainActivity mainActivity = null;
	
	public static Context getContext(){
		return context;
	}
	
	public static void setContext(Context c){
		context = c;
	}
	
	public static void setMainActivity(MainActivity ma){
		mainActivity = ma;
		context = (Context)ma;
	}
	
	public static MainActivity getMainActivity(){
		return mainActivity;
	}
}
